home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / batch / batcher.zip / BAT-NEST.DOC < prev    next >
Text File  |  1986-07-13  |  1KB  |  43 lines

  1.  
  2.  
  3.                    .BAT files can be NESTED in DOS 2.0 enviroment!
  4.  
  5. Yes, bat files can be nested in DOS 2.0.  Just look up your DOS 2.0 manual
  6. 10-9.  The method is a bit obscure, however.  It involve the COMMAND /C Arg.
  7.  
  8. Example:
  9.  
  10.     test.bat
  11.     --------
  12.         echo off
  13.         masm %1,,,,
  14.         COMMAND /C pascal %2  <- Call the sub-batch file via command /c arg.
  15.         echo off              <- Upon re-enter, echo will be on, reguardless!
  16.         edit
  17.  
  18.     Pascal.bat
  19.     ----------
  20.         . put in your PASCAL diskettes...
  21.         pause
  22.         pas1 %1
  23.         pas2
  24.         link %1,,,
  25.         . put in your original diskettes...
  26.         pause
  27.         EXIT           <-This is very important.  Upon exitting the batch file
  28.                          you have to get out via EXIT.
  29.  
  30.  
  31.  
  32. NOTE:  Each Level of nesting will take a minimum of 3K!
  33.  
  34. Good luck, hope you have fun!
  35.  
  36. Peter Chow 11/13/83
  37. idea from Tech Journal,Nov
  38.  
  39. 
  40.  
  41. sting will take a minimum of 3K!
  42.  
  43. Good luck, h